package com.zx.sericefeign.service;


import com.zx.sericefeign.service.impl.SchedualServiceHiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description SchedualServiceHi
 * 通过@ FeignClient（“服务名”），来指定调用哪个服务的哪个接口（eureka-client-service服务的hi接口）
 * @Author Zhang Xin
 * @Date 2020/7/22
 */
@FeignClient(value = "eureka-client-service",fallback = SchedualServiceHiHystrix.class)
public interface SchedualServiceHi {
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
